package com.artron.mediaartron.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-10-19.
 */

public class AddressData implements Parcelable {


    /**
     * mobileCode : 189876543621
     * isDefault : N
     * districtId : 51
     * cityName : 石家庄市
     * districtName : 裕华区
     * name : 李四
     * id : 1
     * cityId : 45
     * detail : 谈固大街
     * provinceName : 河北省
     * provinceId : 44
     */

    private String mobileCode;
    private String isDefault;
    private int districtId;
    private String cityName;
    private String districtName;
    private String name;
    private String id;
    private int cityId;
    private String detail;
    private String provinceName;
    private int provinceId;

    private int position = -1;

    public String getMobileCode() {
        return mobileCode;
    }

    public void setMobileCode(String mobileCode) {
        this.mobileCode = mobileCode;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public int getDistrictId() {
        return districtId;
    }

    public void setDistrictId(int districtId) {
        this.districtId = districtId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mobileCode);
        dest.writeString(this.isDefault);
        dest.writeInt(this.districtId);
        dest.writeString(this.cityName);
        dest.writeString(this.districtName);
        dest.writeString(this.name);
        dest.writeString(this.id);
        dest.writeInt(this.cityId);
        dest.writeString(this.detail);
        dest.writeString(this.provinceName);
        dest.writeInt(this.provinceId);
        dest.writeInt(this.position);
    }

    public AddressData() {
    }

    protected AddressData(Parcel in) {
        this.mobileCode = in.readString();
        this.isDefault = in.readString();
        this.districtId = in.readInt();
        this.cityName = in.readString();
        this.districtName = in.readString();
        this.name = in.readString();
        this.id = in.readString();
        this.cityId = in.readInt();
        this.detail = in.readString();
        this.provinceName = in.readString();
        this.provinceId = in.readInt();
        this.position = in.readInt();
    }

    public static final Parcelable.Creator<AddressData> CREATOR = new Parcelable.Creator<AddressData>() {
        @Override
        public AddressData createFromParcel(Parcel source) {
            return new AddressData(source);
        }

        @Override
        public AddressData[] newArray(int size) {
            return new AddressData[size];
        }
    };
}
